package com.justgame.project.service.api.entity;

import lombok.Data;
import org.hibernate.validator.constraints.Length;
import org.springframework.lang.Nullable;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Null;
import java.io.Serializable;
import java.time.LocalDateTime;

@Data
public class OnlineUserInfo implements Serializable {

    /**
     * 主键ID
     */
    @Null
    private Long onlineId;

    /**
     * 网名
     */
    @NotBlank
    @Length(min = 3,max = 32,message = "昵称长度请确保在3~32个字符之间！")
    private String onlineName;

    /**
     * 账户等级
     */
    @Null
    private Integer onlineLevel;

    /**
     * 最后登录日期
     */
    @Null
    private LocalDateTime finalDate;

    /**
     * JCoins数量
     */
    @Null
    private Integer jCoins;

    /**
     * 头像图片编号
     */
    @Null
    private String images;

    /**
     * 积分
     */
    @Null
    private Integer onlineIntegral;

    /**
     * 个人说明
     */
    @Nullable
    @Length(max = 100,message = "简介长度请确保小于等于100个字符！")
    private String onlineText;

}
